/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package EnigmaUtils;

import Floors.BasicFloor;
import Floors.BridgeFloor;
import Floors.GradientUp;
import Floors.Floor;
import Floors.GradientDown;
import Floors.GradientDownLeft;
import Floors.GradientDownRight;
import Floors.GradientLeft;
import Floors.GradientRight;
import Floors.GradientUpLeft;
import Floors.GradientUpRight;
import Floors.MetalFloor;
import Floors.SandFloor;
import Floors.Space;
import Floors.WaterFloor;

/**
 *
 * @author Snowangelic
 */
public class FloorFactory {
    public FloorFactory(){
    }

    public Floor generateFloor(String type){
        if(type==null) return null;
        else if(type.equals("")) return null;
        else if(type.equals("BasicFloor")) return new BasicFloor();
        else if(type.equals("WaterFloor")) return new WaterFloor();
        else if(type.equals("BridgeFloor")) return new BridgeFloor();
        else if(type.equals("SandFloor")) return new SandFloor();
        else if(type.equals("Space")) return new Space();
        else if(type.equals("MetalFloor")) return new MetalFloor();
        else if(type.equals("GradientUp")) return new GradientUp();
        else if(type.equals("GradientDown")) return new GradientDown();
        else if(type.equals("GradientLeft")) return new GradientLeft();
        else if(type.equals("GradientRight")) return new GradientRight();
        else if(type.equals("GradientUpLeft")) return new GradientUpLeft();
        else if(type.equals("GradientUpRight")) return new GradientUpRight();
        else if(type.equals("GradientDownRight")) return new GradientDownRight();
        else if(type.equals("GradientDownLeft")) return new GradientDownLeft();
        else return null;
    }
}
